package com.lihui.lesson01;

import java.io.File;

/**
 * @Author 比特就业课
 * @Date 2023-02-11
 */
public class Demo07_Permission {
    public static void main(String[] args) {
        // 创建文件对象
        File file = new File("d:/temp/test/test.txt");
        System.out.println("是否可读: " + file.canRead());
        System.out.println("是否可写: " + file.canWrite());
    }
}
